<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Hello Thymeleaf</title>
    <!-- 简单的Thymeleaf示例 -->
    <!-- Thymeleaf 参考李卫民博客：https://www.funtl.com/zh/spring-boot-thymeleaf/ -->
</head>
<body>
    <div>
        <span>访问 Model：</span><span th:text="${user.username}">，</span><span th:text="${user.sign}"> </span>
    </div>
    <div>
        <span>访问列表</span>
        <table>
            <thead>
                <tr>
                    <th>姓名</th>
                    <th>年龄</th>
                </tr>
            </thead>
            <tbody>
            	<tr th:each="human : ${people}">
                    <td th:text="${human.name}"></td>
                    <td th:text="${human.age}"></td>
                </tr>
            </tbody>
        </table>
        
		<div><a href="/logout">退出</a></div>
    </div>
</body>
</html>